import request from "@/utils/request";

// 导航接口
export function navigationApi() {
  return request({
    url: "/bs/index/router",
    method: "get",
  });
}

// 首页-信息接口
export function indexInfoApi(params) {
  return request({
    url: "/bs/index/getInfo",
    method: "get",
    params,
  });
}

// 首页-流量数据对比
export function getSituationApi(params) {
  return request({
    url: "/bs/index/getSituation",
    method: "get",
    params,
  });
}


// 新接口
// 1 获取景区人流排名
export function jinquPeoNumIndexApi(limit) {
  return request({
    url: `/bs/index/jinqu/people?limit=${limit}`,
    method: "get"
  });
}

// 2 设备统计
export function equipNNumApi() {
  return request({
    url: "/bs/index/equip",
    method: "get"
  });
}

// 3 客源地统计
export function peopleCityApi() {
  return request({
    url: "/bs/index/city/people",
    method: "get"
  });
}

// 4 客流检测
export function analysisPeopleApi() {
  return request({
    url: "/bs/index/analysis/people",
    method: "get"
  });
}

// 5 获取不同时间段的游客数量情况
export function timePeopleApi() {
  return request({
    url: "/bs/index/time/people",
    method: "get"
  });
}

// 6 获取不同年龄的人占比
export function agePeopleApi() {
  return request({
    url: "/bs/index/age/people",
    method: "get"
  });
}

// 7 首页上面展示的今日入园，累计入园及明日预约人数
export function inPeopleNumApi() {
  return request({
    url: "/bs/index/people",
    method: "get"
  });
}

